package producatorconsumator;

public class Producator extends Thread {
	BlockMyStack bms;

	Producator(BlockMyStack bms) {
		this.bms = bms;
	}

	public void run() {

		try {
			for (int i = 1; i < 6; i++, Thread.sleep(100)) {
				System.out.println("Request " + i);
				bms.push(" " + i);

			}
		} catch (InterruptedException e) {

			e.printStackTrace();
		}

	}

}
